package localizer.main;

import java.util.ArrayList;

import android.content.Intent;
import android.os.Bundle;
import android.telephony.TelephonyManager;
import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.GridView;
import android.widget.Toast;

public class PhoneFinderMain extends Menuable {
    /** Called when the activity is first created. */
	
	private Config config;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        config= Config.getInstance(this);
        if(!config.hasUser(getApplication()) ){ 
			startActivity(new Intent(this,LoginActivity.class));
			finish();
		} else {
			Intent intent = new Intent(this, ServiceBroadcastReciever.class);
			sendBroadcast(intent);
		}
        config = null;
    }
    
}